<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--头部资源引用-->
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
    <link rel="stylesheet" href="../static/lib/toc/tocbot.css" th:href="@{/lib/toc/tocbot.css}">
    <link rel="icon" type="image/x-icon" th:href="@{/images/blog.ico}">
</head>
<body>
<!--导航-->
<nav th:fragment="menu(n)" class="ui vertical segment m-padded-tb-mini">
    <div class="ui container">
        <div class="ui secondary stackable menu">
            <h2 class="ui violet header item">Blog</h2>
            <a href="#" th:href="@{/}" class="m-item violet item m-mobile-hide " th:classappend="${n==1} ? 'active'"><i
                    class="home icon"></i> 首页</a>
            <a href="#" th:href="@{/types/-1}" class="m-item violet item m-mobile-hide " th:classappend="${n==2} ? 'active'"><i
                    class="idea icon"></i> 分类</a>
            <a href="#" th:href="@{/tags/-1}" class="m-item violet item m-mobile-hide " th:classappend="${n==3} ? 'active'"><i
                    class="tags icon"></i> 标签</a>
            <a href="#" th:href="@{/archives}" class="m-item violet item m-mobile-hide " th:classappend="${n==4} ? 'active'"><i
                    class="clone icon"></i> 归档</a>
            <div class="right item m-mobile-hide">
                <form action="#" method="post" th:action="@{/search}" target="_blank">
                    <div class="ui m-item icon transparent input">
                        <input type="text" name="query" th:value="${query}" placeholder="搜索文章">
                        <i onclick="document.forms['search'].submit()" class="search  link icon"></i>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--底部-->
<footer th:fragment="footer" class="ui attached segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui stackable    divided grid">
            <div class="four wide column">
                <h4 class="ui header m-opacity-mini">最新博客</h4>
                <div id="newblog-container">
                    <div class="ui link list" th:fragment="newblogList">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" class="item" th:each="blog : ${newblogs}" th:text="${blog.title}">Springboot原理浅析</a>
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui header m-opacity-mini">联系我</h4>
                <div class="ui link list">
                    <a class="item m-text-thin" th:text="|Email: #{index.email}|">Email</a>
                    <a class="item m-text-thin" th:text="|QQ: #{index.qq}|">QQ</a>
                </div>
            </div>

            <div class="eight wide column">
                <h4 class="ui header m-opacity-mini">关于我</h4>
                <p class="m-text-thin">这是我的个人博客，主要记录一些技术笔记。偶尔记录生活和感悟，希望可以帮到每个来到这里的人</p>
            </div>
        </div>
        <div class="ui    section divider"></div>
        <p class="m-text-spaced m-opacity-mini m-text-thin">Copyright @ 2020 - 2021 Saw96x Designed by Saw96x</p>
    </div>
</footer>
<div th:fragment="script">
    <script>
        $('#newblog-container').load(/*[[@{/footer/newblog}]]*/"/footer/newblog");
    </script>
    <script type="text/javascript" color="0,0,0" opacity='1' zIndex="-1" count="150"
            src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
</div>

</body>
</html>
